/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Bean;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import Localizacao.*;
import java.util.List;

/**
 *
 * @author fellipe
 */
@ManagedBean(name="enderecoControlador")
@SessionScoped
public class EnderecoControlador {
    public Endereco endereco;
    public List<Endereco> enderecos;
    public EnderecoHelper dao;

    public List<Endereco> getEnderecos() {
        return enderecos;
    }

    public void setEnderecos(List<Endereco> enderecos) {
        this.enderecos = enderecos;
    }
    
    
    public EnderecoControlador()
    {
        dao = new EnderecoHelper();
        
        enderecos = dao.consultar(); 
        
    }
    
    
}
